package com.tjetc.service;

import com.tjetc.domain.Order;
import com.tjetc.utils.PageInfo;

import java.sql.Date;
import java.util.List;

public interface OrderService {

    //查看某时间，医生是否能够被预约
    Order listDocOrder(Date date, String time, int did);

    boolean addOrder(Order order);

    List<Order> listMyOrder(PageInfo<Order> pageInfo, int did,int status);

    int getCount(int did,int status);

    Order findByDid(int id);

    boolean listInOrder(int did,Date date,String time);

    //根据uid查询用户预约日期，为了反馈一个当时的天气预警
    List<Order> listUserOrder(int uid);

    List<Order> listMyOrderTime(int did, Date date);
}
